package service.impl;

import dao.MetaverseDao;
import dao.impl.MetaverseDaoImpl;
import entity.MetaverseProduct;
import service.MetaverseService;

import java.util.List;

public class MetaverseServiceImpl implements MetaverseService {
    MetaverseDao metaverseDao = new MetaverseDaoImpl();
    //查询全部
    @Override
    public List<MetaverseProduct> SelectAll() {
        return metaverseDao.Select();
    }

    @Override
    public boolean delete(int id) {
        if (metaverseDao.delete(id)>0){
            return true;
        }else{
            return false;
        }
    }
}
